/* 设置第一行内容样式 */
header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
}

nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #555;
}

/* 设置第二行内容样式 */
.row2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.section-column {
    flex: 1;
    margin-right: 1rem;
}

.notice,
.news,
.recommended {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 1rem;
}

.notice h2,
.news h2,
.recommended h2 {
    margin-bottom: 1rem;
}

.notice ul li,
.news ul li,
.recommended ul li {
    margin-bottom: 0.5rem;
    animation: fadeInOut 1s ease infinite alternate;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 设置第三行内容样式 */
.row3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.featured {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.article {
    border: 1px solid #ccc;
    padding: 1rem;
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    0% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* 设置第四行内容样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

footer nav ul {
    display: flex;
    justify-content: center;
}

footer nav ul li {
    margin-right: 1rem;
}

footer nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer nav ul li a:hover {
    color: #bbb;
}
